package dev;
import prefs.Preferences;
import dev.controller.myControllerImpl;

public class Main {
	private static myControllerImpl controller;
	
	public static void main(String[] args) {
		initDatabase();
		controller = new myControllerImpl();
	}
	private static void initDatabase(){
		try{
			Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
		} catch(Exception e){
			System.out.println("Treiber konnten nicht geladen werden: "+ e.getMessage());
			System.exit(1);
		}
		//Obacht wegen des Connects!
		Preferences.DATABASE_URL = "jdbc:oracle:thin:@//127.0.0.1:1521/XE";
		Preferences.USERNAME = "";
		Preferences.PASSWORD = "";	
	}

}
